package com.sunday.member.entity.product;

import com.google.gson.annotations.SerializedName;
import com.sunday.member.entity.RollImage;
import com.sunday.member.entity.order.OrderItem;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 刘涛 on 2017/5/25.
 */

public class ProductDetail extends Product implements Serializable{


    /**
     * id : 65
     * createTime : 2017-05-09 15:59:30
     * createDate : 2017-05-09
     * viceName : IPS屏 七代I7 1060 Win10
     * marketPrice : 9999.0
     * price : 9599.0
     * type : 3
     * saleNumber : 1
     * rollImages : []
     * isCollection : 0
     * descUrl : http://mobile.51huaguoshan.com/sunday/mobile/product/desc?id=65
     * products : [{"image":"http://image.51huaguoshan.cn/upload/2017/5/57f88b6b-c377-45b8-8e04-569a82cc246a-1.jpg","marketPrice":9999,"price":9599,"name":"Hasee/神舟 战神 Z7-KP7S1 i7 6G独显gtx1060游戏本笔记本电脑","id":65,"viceName":"IPS屏 七代I7 1060 Win10"}]
     * comments : []
     * typeStr : 采购商品
     */

    private String createTime;
    private String createDate;
    private int type;
    private int saleNumber;
    private int isCollection;
    private String descUrl;
    private String typeStr;
    private List<RollImage> rollImages;
    private List<Product> products;
    private List<CommentsBean> comments;
    private String shareUrl;
    private String shareImage;
    private String shareTitle;
    private String shareDesc;
    private List<CookBooksBean> cookBooks;

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public String getShareImage() {
        return shareImage;
    }

    public void setShareImage(String shareImage) {
        this.shareImage = shareImage;
    }

    public String getShareTitle() {
        return shareTitle;
    }

    public void setShareTitle(String shareTitle) {
        this.shareTitle = shareTitle;
    }

    public String getShareDesc() {
        return shareDesc;
    }

    public void setShareDesc(String shareDesc) {
        this.shareDesc = shareDesc;
    }

    public List<CookBooksBean> getCookBooks() {
        return cookBooks;
    }

    public void setCookBooks(List<CookBooksBean> cookBooks) {
        this.cookBooks = cookBooks;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getSaleNumber() {
        return saleNumber;
    }

    public void setSaleNumber(int saleNumber) {
        this.saleNumber = saleNumber;
    }

    public int getIsCollection() {
        return isCollection;
    }

    public void setIsCollection(int isCollection) {
        this.isCollection = isCollection;
    }

    public String getDescUrl() {
        return descUrl;
    }

    public void setDescUrl(String descUrl) {
        this.descUrl = descUrl;
    }

    public String getTypeStr() {
        return typeStr;
    }

    public void setTypeStr(String typeStr) {
        this.typeStr = typeStr;
    }

    public static class CookBooksBean implements Serializable{
        /**
         * id : 70
         * createTime : 2017-05-30 17:23:30
         * createDate : 2017-05-30
         * name : 王中王火腿肠
         * number : 01
         * standard : 1200g
         * num : 1
         */

        private long id;
        private String name;
        private String image;
        private String viceName;

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getViceName() {
            return viceName;
        }

        public void setViceName(String viceName) {
            this.viceName = viceName;
        }
    }


    public List<CommentsBean> getComments() {
        return comments;
    }

    public void setComments(List<CommentsBean> comments) {
        this.comments = comments;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }


    public List<RollImage> getRollImages() {
        return rollImages;
    }

    public void setRollImages(List<RollImage> rollImages) {
        this.rollImages = rollImages;
    }
    public static class CommentsBean implements Serializable{
        /**
         * id : 1
         * createTime : 2017-06-02 11:19:16
         * createDate : 2017-06-02
         * memberId : 14
         * memberName : 花果山-345
         * memberImage : http://image.51huaguoshan.com/upload/logo/logo8.jpg
         * score : 2
         * content : 77评论
         * images : [{"id":10,"createTime":"2017-06-02 11:19:17","createDate":"2017-06-02","url":"http://image.51huaguoshan.com/upload77Image1","remark":"评论1图片","type":null,"size":null,"isDeleted":0},{"id":11,"createTime":"2017-06-02 11:19:17","createDate":"2017-06-02","url":"http://image.51huaguoshan.com/upload77Image2","remark":"评论1图片","type":null,"size":null,"isDeleted":0}]
         */

        @SerializedName("id")
        private int idX;
        @SerializedName("createTime")
        private String createTimeX;
        @SerializedName("createDate")
        private String createDateX;
        private int memberId;
        private String memberName;
        private String memberImage;
        private int score;
        private String content;
        private List<CommentsBean.ImagesBean> images;

        public int getIdX() {
            return idX;
        }

        public void setIdX(int idX) {
            this.idX = idX;
        }

        public String getCreateTimeX() {
            return createTimeX;
        }

        public void setCreateTimeX(String createTimeX) {
            this.createTimeX = createTimeX;
        }

        public String getCreateDateX() {
            return createDateX;
        }

        public void setCreateDateX(String createDateX) {
            this.createDateX = createDateX;
        }

        public int getMemberId() {
            return memberId;
        }

        public void setMemberId(int memberId) {
            this.memberId = memberId;
        }

        public String getMemberName() {
            return memberName;
        }

        public void setMemberName(String memberName) {
            this.memberName = memberName;
        }

        public String getMemberImage() {
            return memberImage;
        }

        public void setMemberImage(String memberImage) {
            this.memberImage = memberImage;
        }

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public List<CommentsBean.ImagesBean> getImages() {
            return images;
        }

        public void setImages(List<CommentsBean.ImagesBean> images) {
            this.images = images;
        }

        public static class ImagesBean implements Serializable{
            /**
             * id : 10
             * createTime : 2017-06-02 11:19:17
             * createDate : 2017-06-02
             * url : http://image.51huaguoshan.com/upload77Image1
             * remark : 评论1图片
             * type : null
             * size : null
             * isDeleted : 0
             */

            @SerializedName("id")
            private int idX;
            @SerializedName("createTime")
            private String createTimeX;
            @SerializedName("createDate")
            private String createDateX;
            private String url;
            @SerializedName("remark")
            private String remarkX;
            @SerializedName("type")
            private Object typeX;
            private Object size;
            private int isDeleted;

            public int getIdX() {
                return idX;
            }

            public void setIdX(int idX) {
                this.idX = idX;
            }

            public String getCreateTimeX() {
                return createTimeX;
            }

            public void setCreateTimeX(String createTimeX) {
                this.createTimeX = createTimeX;
            }

            public String getCreateDateX() {
                return createDateX;
            }

            public void setCreateDateX(String createDateX) {
                this.createDateX = createDateX;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public String getRemarkX() {
                return remarkX;
            }

            public void setRemarkX(String remarkX) {
                this.remarkX = remarkX;
            }

            public Object getTypeX() {
                return typeX;
            }

            public void setTypeX(Object typeX) {
                this.typeX = typeX;
            }

            public Object getSize() {
                return size;
            }

            public void setSize(Object size) {
                this.size = size;
            }

            public int getIsDeleted() {
                return isDeleted;
            }

            public void setIsDeleted(int isDeleted) {
                this.isDeleted = isDeleted;
            }
        }
    }
}
